import request from '@/utils/request'

export function listDirector() {
  return request({
    url: '/director/list',
    method: 'get',
  })
}

export function listDirectorPage(query) {
  return request({
    url: '/director/listPage',
    method: 'post',
    data: query
  })
}

export function deleteDirector(id) {
  return request({
    url: '/director/delete',
    method: 'get',
    params: {
      id
    }
  })
}

export function createDirector(temp) {
  return request({
    url: '/director/create',
    method: 'post',
    data: temp
  })
}

export function updateDirector(temp) {
  return request({
    url: '/director/update',
    method: 'post',
    data: temp
  })
}
